<script type="text/javascript">

var imageSlideshow=new Array();
var commentSlideshow=new Array(); 
var currentImageSlideshow = 0;

<?php




//$dataSlideshow = new data();

//$dataSlideshow->getTable("[php_property:table]");

$querySlideshow="select * from [php_property:table]";
$resultSlideshow=mysql_query($querySlideshow);


$n=0;
//$firstImage = $dataSlideshow->data['[php_property:field]']; 
//$firstComment = $dataSlideshow->data['[php_property:comment_field]'];  
//do {
while ($lineSlideshow=mysql_fetch_array($resultSlideshow)) {
    
    if ($n === 0) {
$firstImage = $lineSlideshow['[php_property:field]']; 
$firstComment = $lineSlideshow['[php_property:comment_field]'];         
        
    }
    
    
    echo "imageSlideshow[$n]='".$lineSlideshow['[php_property:field]']."';\n";
    echo "commentSlideshow[$n]='".$lineSlideshow['[php_property:comment_field]']."';\n";   
    $n++;    
} 
//while($dataSlideshow->nextRow());

echo "var maxImageSlideshow=$n";  





  /*
<?php $query1="show tables";$result1=mysql_query($query1);while ($line1=mysql_fetch_array($result1)) { $line1=array_change_key_case($line1);?>
        <option value="<?php echo $line1['0'];?>"><?php echo $line1['0'];?></option>
      <?php } mysql_free_result($result1);?></select>
    </label> */



/*$dataSlideshow = new data();

$dataSlideshow->getTable("[php_property:table]");

$n=0;
$firstImage = $dataSlideshow->data['[php_property:field]']; 
$firstComment = $dataSlideshow->data['[php_property:comment_field]'];  
do {
    echo "image[$n]='".$dataSlideshow->data['[php_property:field]']."';\n";
    echo "comment[$n]='".$dataSlideshow->data['[php_property:comment_field]']."';\n";   
    $n++;    
} while($dataSlideshow->nextRow());

echo "var maxImage=$n";   */
  
?>


</script>


<div style="width: 150;">
<div align="center">
<img id="slideshow_image" src="<?php echo $firstImage;?>" alt="">
<div id="slideshow_progress">1/<?php echo $n;?></div>
</div>
<div id="slideshow_comment"><?php echo $firstComment;?></div>

<div align="right">
<a id="slideshow_previous" href="#" onclick="currentImageSlideshow=currentImageSlideshow-1;setSlideshowImage();"><img border="0" src="/com/slideshow/image/previous.png" width="30" /></a>
<a id="slideshow_next" href="#" onclick="currentImageSlideshow=currentImageSlideshow+1;setSlideshowImage();"><img border="0" src="/com/slideshow/image/next.png" width="30" /></a>
</div>
</div>


